package com.springboot.study.second.application;

import com.springboot.study.first.FirstService;
import com.springboot.study.second.service.SecondService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @program: study
 * @description: 启动类
 * @author: chengqj
 * @create: 2019-07-09 09:18
 **/
@SpringBootApplication
public class SecondMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext sp =
                SpringApplication.run(SecondMain.class, args);
        SecondService fs =  sp.getBean(SecondService.class);
        fs.helloSecond();
    }
}
